package com.nft.service.school.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nft.service.school.entity.SysDeptEntity;
import com.nft.service.school.resp.SysDeptResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
@DS("master")
public interface SysDeptMapper extends BaseMapper<SysDeptEntity> {
    @Select("select dept_name,introduce,integral,wxcode,cast(detail AS CHAR) AS detail from sys_dept where dept_id=#{deptId}")
    public SysDeptResp getDetailInfo(@Param("deptId")Long deptId);
}
